"""
@author:menglei
@desc:商品上架状态设置
"""
from pdd.api.base import RestApi


class PddGoodsSaleStatusSetRequest(RestApi):
    """
    @:param: goods_id:LONG:拼多多商品id
    @:param: is_onsale:INTEGER:上下架状态：1:上架 0:下架
    """
    def __init__(self,domain='https://gw-api.pinduoduo.com'):
        RestApi.__init__(self, domain)
        self.goods_id = None
        self.is_onsale = None

    def getapiname(self):
        return 'pdd.goods.sale.status.set'